<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let arr1 = [1, 1, 1, 2, 3, 5, 5, 9, 9, 'as', 'bv', 'ui', 'as']
    let arr2 = [34, 45, 561, 23, 45, 234, 45, 9, 9, 's', 's', 'mg', 's']
    let h1 = arr1.concat(arr2)
    let arr = [...new Set(h1)]
    console.log(arr)
  </script>
</body>

</html>